﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace SHRIS.MIS.Entity.ScadaData
{
    [Table("tb_toolInfo")]
    public class ToolInfoEntity : BaseScadaEnetity
    {
        /// <summary>
        /// 记录主键
        /// </summary>
        [Key]
        [Column("ToolId")]
        public Guid Id { get; set; }

        /// <summary>
        /// 刀号
        /// </summary>
        [Required]
        public int  ToolNumber { get; set; }

        /// <summary>
        /// 刀库ID
        /// </summary>
        [Required]
        public Guid HouseId { get; set; }

        /// <summary>
        /// 刀具名称
        /// </summary>
        [Required]
        public string ToolName { get; set; }

        /// <summary>
        /// 刀具类型
        /// </summary>
        [Required]
        public string ToolType { get; set; }

        /// <summary>
        /// 刀库存储刀位号
        /// </summary>
        [Required]
        public int ToolIndex { get; set; }

        /// <summary>
        /// 刀具X
        /// </summary>
        [Required]
        public double Xparam { get; set; }

        /// <summary>
        /// 刀具Z
        /// </summary>
        [Required]
        public double Zparam { get; set; }

        /// <summary>
        /// 刀具R
        /// </summary>
        [Required]
        public double Rparam { get; set; }

        /// <summary>
        /// 刀具寿命
        /// </summary>
        [Required]
        public double ActiveLife { get; set; }

        /// <summary>
        /// 刀具加工件数
        /// </summary>
        [Required]
        public int ActiveCount { get; set; }

        /// <summary>
        /// 刀具磨损
        /// </summary>
        [Required]
        public double ToolAbrasion { get; set; }
    }
}
